import request from '@/utils/request'

// 查询用户列表
export function listUser(query) {
    return request({
        url: '/passenger/User/list',
        method: 'get',
        params: query
    })
}

// 查询用户详细
export function getUser(userId) {
    return request({
        url: '/passenger/User/' + userId,
        method: 'get'
    })
}

// 新增用户
export function addUser(data) {
    return request({
        url: '/passenger/User',
        method: 'post',
        data: data
    })
}

// 修改用户
export function updateUser(data) {
    return request({
        url: '/passenger/User',
        method: 'put',
        data: data
    })
}

// 删除用户
export function delUser(userId) {
    return request({
        url: '/passenger/User/' + userId,
        method: 'delete'
    })
}
